package com.atguigu.tingshu.album.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

@Configuration
// 自动刷新配置文件中改变的那个值
@ConfigurationProperties(prefix="minio") //读取节点
@RefreshScope
@Data
public class MinioConstantProperties {

    //minio的连接地址
    private String endpointUrl;
    //minio的访问账户名
    private String accessKey;
    //minio的访问密码
    private String secreKey;
    //minio的存储桶名称
    private String bucketName;
}
